
var values = [213,16,2058,54,10,1965,57,9];
values.sort(function(value1,value2){return value2 - value1;});
console.log(values);